package com.efei.jdbc.dao;

import com.efei.jdbc.sql.SqlSelect;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.relational.core.sql.SQL;
import org.springframework.data.relational.core.sql.Select;

import java.util.List;

/**
 * @Author efei
 * 规范话常用的查询语句
 *
 */
public interface QueryDao {

    Page<?> selectPageDataBySQL(SqlSelect sql, Pageable pageable);

    List<?> selectDataBySQL(SqlSelect sql);

    <T> T selectOne(SqlSelect sql,Class<T> clz);

    <T> T selectOne(SqlSelect sql);

}
